package cn.ycc1.springioc.bean;

import jdk.jfr.DataAmount;
import org.springframework.stereotype.Component;

/**
 * @author ycc
 * @date 2024/11/10
 */
@Component
public class Person {

    private String name;
    private Integer age;

    public Person() {
        this.name = "张三";
        this.age = 18;
    }

    public String getName() {
        return name;
    }

    public Integer getAge() {
        return age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
